﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using LastoRevival.Website.Engine;

namespace LastoRevival.Website
{
	public class MvcApplication : System.Web.HttpApplication
    {

        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            filters.Add(new HandleErrorAttribute());
        }
        
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            RegisterGlobalFilters(GlobalFilters.Filters);
			
            // replace the default view engine with the themeable one
            ViewEngines.Engines.Clear();
            ViewEngines.Engines.Add(new OverridableViewEngine());

			// initialize themes
			ThemeHelper.InitializeThemes();

        }




    }
}